package com.hehua.BuilderThree;

public class XiaoHeBuilder extends ManBuilder{
    @Override
    public void buildLove() {
        man.setLove("小陈");
    }

    @Override
    public void buildName() {
        man.setAge("21");
    }

    @Override
    public void buildAge() {
        man.setName("小何");
    }

    @Override
    public Boolean isLove() {
        if (Integer.parseInt(man.getAge())>20){
            return true;
        }
        return false;
    }
}
